#ifndef EVENT_H
#define EVENT_H
//  File:         Event.h
//  Author:       Scott Nordmann & Lauren Wallace
//  Description:  A class definition for the Event.
#include <string>
#include "Entry.h"

class Event : public Entry
{
public:
	Event(const std::string& crtr);

	virtual void populate();
	void edit();

	virtual void display() const;
	virtual void displaySummary();

	void displayTime() const;

	int getHour() const;
	int getMinute() const;
	bool getIsAM() const;
	std::string getTimeString() const;
	std::string getDateString() const;

	void setTime(int h, int m, bool am);
	void setTime(const std::string& timeString);
	void setDateString(const std::string& ds);
		
private:
	// time
	int hour;
	int minute;
	bool isAM;

	// the date this string is attached to- used for file operations
	std::string dateString;
};


inline int Event::getHour() const { return hour; }
inline int Event::getMinute() const { return minute; }
inline bool Event::getIsAM() const { return isAM; }
inline std::string Event::getDateString() const { return dateString; }

inline void Event::setTime(int h, int m, bool am) { hour = h; minute = m; isAM = am; }
inline void Event::setDateString(const std::string& ds) { dateString = ds; }
#endif